﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="pages.aspx.cs" Inherits="web_pages_pages" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link rel="shortcut icon" href="../../icon.ico" type="image/x-icon" />
    
    <link href="../css/base.css" type="text/css" rel="stylesheet" />
    <link href="../css/vieclam_home.css" type="text/css" rel="stylesheet" />
    <link href="../css/redmond/ui.all.css" rel="stylesheet" type="text/css" />
    <link href="../css/redmond/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript"> 
 
        function scrollDiv(object){
	        var flag = true;
	        var a, b;
	        a = document.getElementById(object).scrollTop; 
	        if (document.getElementById(object).scrollTop == 0){
		        flag=true;
	        }
         
	        if (flag==true){
		        document.getElementById(object).scrollTop = document.getElementById(object).scrollTop+1;		
		        b = document.getElementById(object).scrollTop; 
	        }
	        if (a == b){
		         flag = (flag == true)? false:true;
	        }
         
	        if (flag ==false ){
		        document.getElementById(object).scrollTop = 0;
	        }
        }
         
         
        function scrollDivForThongKe(object)
         
        {
        var flag = true;
         
        var a, b;
         
	        a = object.scrollTop 
         
	        if (object.scrollTop == 0){
         
		        flag=true;
         
	        }
         
	        if (flag==true){
         
		        object.scrollTop = object.scrollTop+2;		
         
		        b = object.scrollTop 
         
	        }
         
	        if (a == b){
         
		        flag = (flag == true)? false:true
         
	        }
         
	        if (flag ==false ){
			        object.scrollTop = 0;
	        }
        }
        function ViewBlock(name, id)
            {
                
                if(name == 'ungvien')
                {
                    if(id == 1)
                    {
                        document.getElementById('vl_block_ungvien_1').style.display = 'block';
                        document.getElementById('ungvien_1').setAttribute("class","tag_home_tt_active");
                        document.getElementById('ungvien_1').setAttribute("className","tag_home_tt_active");
                        document.getElementById('vl_block_ungvien_2').style.display = 'none';
                        document.getElementById('ungvien_2').setAttribute("class","");
                        document.getElementById('ungvien_2').setAttribute("className","");
                    }
                    if(id == 2)
                    {
                        document.getElementById('vl_block_ungvien_2').style.display = 'block';
                        document.getElementById('ungvien_2').setAttribute("class","tag_home_tt_active");
                        document.getElementById('ungvien_2').setAttribute("className","tag_home_tt_active");
                        document.getElementById('vl_block_ungvien_1').style.display = 'none';
                        document.getElementById('ungvien_1').setAttribute("class","");
                        document.getElementById('ungvien_1').setAttribute("className","");
                    }
                }
                if(name == 'vieclam')
                {
                    if(id == 1)
                    {
                        document.getElementById('vl_block_vieclam_1').style.display = 'block';
                        document.getElementById('vieclam_1').setAttribute("class","tag_home_tt_active");
                        document.getElementById('vieclam_1').setAttribute("className","tag_home_tt_active");
                        document.getElementById('vl_block_vieclam_2').style.display = 'none';
                        document.getElementById('vieclam_2').setAttribute("class","");
                        document.getElementById('vieclam_2').setAttribute("className","");
                    }
                    if(id == 2)
                    {
                        document.getElementById('vl_block_vieclam_2').style.display = 'block';
                        document.getElementById('vieclam_2').setAttribute("class","tag_home_tt_active");
                        document.getElementById('vieclam_2').setAttribute("className","tag_home_tt_active");
                        document.getElementById('vl_block_vieclam_1').style.display = 'none';
                        document.getElementById('vieclam_1').setAttribute("class","");
                        document.getElementById('vieclam_1').setAttribute("className","");
                    }
                }
                if(name == 'timkiem')
                {
                    if(id == 1)
                    {
                        document.getElementById('vl_block_timkiem_1').style.display = 'block';
                        document.getElementById('timkiem_1').setAttribute("class","tag_home_tt_active");
                        document.getElementById('timkiem_1').setAttribute("className","tag_home_tt_active");
                        document.getElementById('vl_block_timkiem_2').style.display = 'none';
                        document.getElementById('timkiem_2').setAttribute("class","");
                        document.getElementById('timkiem_2').setAttribute("className","");
                    }
                    if(id == 2)
                    {
                        document.getElementById('vl_block_timkiem_2').style.display = 'block';
                        document.getElementById('timkiem_2').setAttribute("class","tag_home_tt_active");
                        document.getElementById('timkiem_2').setAttribute("className","tag_home_tt_active");
                        document.getElementById('vl_block_timkiem_1').style.display = 'none';
                        document.getElementById('timkiem_1').setAttribute("class","");
                        document.getElementById('timkiem_1').setAttribute("className","");
                    }
                }
            }
        </script>
</head>
<body onload="iTimerdivResume= setInterval('scrollDivForThongKe(divResume)', 200);iTimerdivJobBoard= setInterval('scrollDivForThongKe(divJobBoard)', 100);">
    <form id="form1" runat="server">
        <%if (pageStatus)
        { %>
            <div id="vieclam_base">
                <%--TOP--%>
                <div id="vl_top_banner1">
                     <asp:Panel ID="panel_top" runat="server" Height="100%" Width="100%">
                        
                    </asp:Panel>
                </div>
                <%--BODY--%>
		        <div id="vl_mains">
			        <div id="vl_mains_ct">
				        <div id="vl_mains_cts">
					        <div id="vl_mains_content">
					            <%--CENTER--%>
					            <div id="vl_mains_content_l" style="text-align:left;">
    							    <asp:Panel ID="panel_center" runat="server" Height="100%" Width="100%">
                                        
                                    </asp:Panel>
						        </div>
						        <%--RIGHT--%>
						        <div id="vl_mains_content_r">
						            <div id="vl_right_dm">
								        <div id="vl_right_dm_tt">DANH MỤC CHÍNH</div>
							            <ul style="text-align:left;">
								            <li><a href="../../Default.aspx?page=kdt_list">Cơ sở đào tạo</a></li>
											<li><a href="nhatuyendung.aspx">Việc tìm người</a></li>
											<li><a href="nguoitimviec.aspx">Người tìm việc</a></li>
											<li><a href="../../Default.aspx?page=dsxkld">Xuất khẩu lao động</a></li>
											<li><a href="../../Default.aspx?page=tintuc&id=8">Giới thiệu về trung tâm</a></li>
											<li><a href="../../Default.aspx?page=tintuc&id=1">Thông báo của trung tâm</a></li>
											<li><a href="../../Default.aspx?page=tintuc&id=16">Qui chế, qui định</a></li>									
											<li><a href="../../Default.aspx?page=dsvanban&type=07">Văn bản liên quan</a></li>
											<li><a href="../../Default.aspx?page=lien_he">Liên hệ, góp ý</a></li>
								            <%
                                            if(dtt_menu.Rows.Count>0){ 
                                                for(int i=0;i<dtt_menu.Rows.Count;i++){
                                            %>
                                                <li><a href="pages.aspx?idpage=<%=dtt_menu.Rows[i]["id_page"].ToString() %>">
                                                    <%=dtt_menu.Rows[i]["name_page"].ToString() %>
                                                </a></li>
                                            <%} }%>
								            
							            </ul>
							        </div>
						            <asp:Panel ID="panel_right" runat="server" Height="100%" Width="30%">
                                        
                                    </asp:Panel>
						        </div>
					        </div>
					    </div>
				    </div>
			    </div>
			    <%--FOOTER--%>
			    <asp:Panel ID="panel_bottom" runat="server">
                    
                </asp:Panel>
		    </div>
		 <%}else
              { %>
                <div align="center" style="padding-top:150px;" id="thongbaonone">   
                    <div style=" width: 49%; padding: 2px;" class="ui-widget ui-widget-content ui-corner-all ">
                        <div style="height: 20px; padding-top: 5px; padding-left: 20px;" class="ui-widget-header ui-corner-all ">
                            Thông báo!
                        </div>
                        <div style="padding: 5px;">
                            Trang này không tồn tài hoặc đang ở chế độ ngưng kích hoạt! Mời bạn quay lại sau.
                            <a href="../../Default.aspx"><span style="color: #cc66ff">
                                <em>Nhấn vào đây để tiếp tục. </em></span></a>
                        </div>
                    </div>
                </div>
            <%} %>
    </form>
</body>
</html>
